Skip to main content

Proxy

The Proxy design pattern provides a surrogate or placeholder for another object to control access to it.

Usage     Usage     Medium-high

UML class diagram

A visualization of the classes and objects participating in this pattern.

diagram

Sample code

This structural code demonstrates the Proxy pattern which provides a representative object (proxy) that controls access to another similar object.


Output


See also